﻿namespace Anley.DomainDrivenDesign.Contract.Enums;

/// <summary>
/// 字符类型
/// </summary>
[Flags]
[Description("字符类型")]
public enum CharacterType
{
    /// <summary>
    /// 数字
    /// </summary>
    [Description("数字")]
    Number = 1,

    /// <summary>
    /// 小写字母
    /// </summary>
    [Description("小写字母")]
    LowerCase = 2,

    /// <summary>
    /// 大写字母
    /// </summary>
    [Description("大写字母")]
    UpperCase = 4,

    /// <summary>
    /// 字母
    /// </summary>
    [Description("字母")]
    Letter = LowerCase | UpperCase,

    /// <summary>
    /// 特殊字符
    /// </summary>
    [Description("特殊字符")]
    Special = 8,

    /// <summary>
    /// 全部
    /// </summary>
    [Description("全部")]
    ALL = Number | LowerCase | UpperCase | Special
}